/* 清楚浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
}

/*公共样式*/
@mixin style {
    width: 248px;
    height: 80px;
    color: #fff;
    overflow: hidden;
    padding: 26px 34px 16px;
    border-radius: 18px;
    position: relative;
    display: inline-block;
}

@mixin text {
    font-size: 22px;
    font-weight: bold;
}

@mixin spanEle {
    display: block;
    width: 47px;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    color: #fec17e;
    margin-top: 11px;
}

@mixin imgEle {
    width: 125px;
    height: 125px;
    position: absolute;
    bottom: 0;
    right: 0;
}

/* 页头区域 */
#baseHead {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #fff;
    color: #877a73;
    font-size: 14px;
    position: relative;

    .wrapper {
        width: 1200px;
        height: 100%;
        margin: 0 auto;
        overflow: hidden;

        /* 右边logo区域 */
        .logo {
            height: 75px;
            margin: 50px 0 0 20px;
            float: left;
            overflow: hidden;

            a {
                color: #333;

                img {
                    width: 75px;
                    height: 75px;
                    float: left;
                }
            }

            .right {
                color: #43200c;
                margin: 8px 0 0 15px;
                text-align: center;
                float: left;

                h3 {
                    font-size: 28px;
                    font-weight: bold;
                    line-height: 40px;
                }

                span {
                    font-size: 12px;
                    line-height: 17px;
                    transform: scale(.8);
                    display: inline-block;
                }
            }
        }

        /* 中间搜索区域 */
        .search {
            width: 532px;
            height: 48px;
            display: flex;
            align-items: center;
            border-radius: 24px;
            border: 2px solid #000;
            background-color: #fff;
            margin: 50px 2px 50px;    //50px 0 0 50px
            position: relative;
            float: left;

            span {
                width: 60px;
                height: 48px;
                background: url(../static/image/panda-Searchbutton.png);
                background-size: 30px 30px;
                background-repeat: no-repeat;
                background-position: 14px 8px;
            }

            input {
                width: 355px;
                height: 44px;
                outline: none;
                border: 0;
                font-size: 16px;
            }

            p {
                width: 130px;
                height: 44px;
                background-color: #ecda37;
                border-radius: 22px;
                line-height: 44px;
                margin-right: 2px;
                text-align: center;
            }
        }

        /* 右边品牌保证区域 */
        .advantage {
            font-size: 10px;
            margin: 43px 180px 0 0;  // 43px 86px 0 0
            float: right;

            ul {
                overflow: visible;
                list-style-type: none;

                li {
                    float: left;
                    position: relative;
                    margin-right: 25px;
                    width: 44px;
                    height: 60px;
                    text-align: center;
                }

                img {
                    display: inline-block;
                    width: 40px;
                }

                span {
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    font-size: 12px;
                    white-space: nowrap;
                    transform: translateX(-50%);
                }
            }
        }

        /* 用户信息区域 */
        #userinfor {
            font-size: 10px;
            margin: -60px 40px 0 0;
            float: right;
            height: 50px;

            img {
                width: 40px;
                height: 40px;
                border-radius: 20px;
                margin-right: 10px;
            }
        }
    }
}

/* 导航栏 */
#nav {
    width: 100%;
    height: 46px;
    color: #fff;
    margin: 0 auto;
    background-color: #43240c;

    ul {
        width: 1200px;
        height: 46px;
        margin: 0 auto;
        display: flex;
    }

    li {
        width: 220px;
        text-align: center;
        line-height: 46px;

        &:hover {
            color: #43240c;
            background-color: #fee44e;
        }
    }
}

/*商品区*/
#main {
    width: 1200px;
    margin: 0 auto;
    min-width: 1200px;
    height: 370px;

    .framework {
        width: 1200px;
        height: 370px;
        float: left;

        /*左边商品分类选择区*/
        .sidebar {
            float: left;
            position: relative;
            width: 220px;
            height: 100%;
            background-color: #fcf9e3;

            menu {
                z-index: 10;
                position: relative;

                ul {
                    list-style-type: none;
                    overflow: hidden;

                    li {
                        width: 100%;
                        height: 40px;
                        line-height: 40px;
                        text-align: center;
                        cursor: pointer;
                        transition: all .3s;

                        &:hover {
                            background-color: white;
                        }

                        .classificationItem {
                            min-width: 77px;
                            height: 100%;
                            font-size: 14px;
                            color: #43200c;
                            position: relative;
                            display: inline-block;

                            img {
                                width: 20px;
                                height: 20px;
                                top: 50%;
                                left: -23px;
                                transform: translateY(-50%);
                                position: absolute;
                            }

                            p {
                                display: inline-block;

                                &:hover {
                                    color: red;
                                }
                            }
                        }
                    }
                }
            }
        }

        /*右边轮播展示区*/
        .banner-container {
            width: 970px;
            height: 100%;
            margin-left: 230px;
            z-index: 2;

            .banner-container-top {
                height: 234px;

                /*轮播*/
                .swiper-container {
                    width: 648px;
                    height: 234px;
                    margin-left: 10px;
                    float: left;
                    z-index: 2;

                    img {
                        width: 648px;
                        height: 234px;
                    }

                    .swiper-button-prev, .swiper-button-next {
                        color: #fff;
                    }
                }

                .banner-container-right {
                    width: 298px;
                    height: 234px;
                    margin-left: 10px;
                    padding: 32px 13px;
                    color: #251d1a;
                    background-color: #fff4e4;
                    transition: all .3s;
                    float: left;
                    cursor: pointer;
                    box-sizing: border-box;
                    position: relative;

                    h3 {
                        font-size: 24px;
                        top: 32px;
                        left: 13px;
                        position: absolute;
                        z-index: 3;
                    }

                    .prompt {
                        font-size: 18px;
                        color: #fff;
                        line-height: 36px;
                        top: 76px;
                        left: 0;
                        padding: 0 47px 0 22px;
                        z-index: 3;
                        position: absolute;
                        background: url(../static/image/panda-arrow.png) no-repeat 50%/cover;
                    }

                    img {
                        height: 134px;
                        position: absolute;
                        bottom: 0;
                        right: 20px;
                        z-index: 2;

                    }
                }

            }

            .banner-container-buttom {
                width: 100%;
                height: 128px;
                font-size: 18px;
                margin: 8px auto 0;
                float: left;

                /*降温急救穿搭*/
                .cool {
                    background: linear-gradient(270deg, #ffd1dd, #fca6c0);
                    margin-left: 8px;
                    @include style();

                    h3 {
                        @include text();
                    }

                    p {
                        font-size: 18px;
                    }

                    span {
                        @include spanEle();
                    }

                    img {
                        @include imgEle();
                    }
                }

                /*超值大额券*/
                .bargain {
                    background: linear-gradient(270deg, #fffffe, #fec07e);
                    @include style();

                    h3 {
                        @include text();
                    }

                    p {
                        font-size: 18px;
                    }

                    span {
                        @include spanEle();
                    }

                    img {
                        @include imgEle();
                    }
                }

                /*app二维码*/
                .ERCode {
                    background: linear-gradient(270deg, #e7f5ff, #afdcff);
                    @include style();

                    p {
                        font-size: 18px;
                        color: #fff
                    }

                    img {
                        width: 100px;
                        height: 100px;
                        top: 14px;
                        right: 20px;
                        box-sizing: border-box;
                        background-color: #fff;
                        border: 8px solid #afdcff;
                        border-radius: 18px;
                        position: absolute;
                    }
                }
            }

        }
    }
}

/*精选商品标题*/
#title {
    width: 1200px;
    height: 56px;
    line-height: 56px;
    font-size: 18px;
    margin: 10px auto;
    color: #43240c;
    background-color: #F6F6F6;

    h3 {
        font-size: 18px;
        font-weight: 500;
        margin-left: 52px;
        display: inline-block;
    }

    p {
        font-size: 14px;
        color: #877a73;
        margin-left: 30px;
        display: inline-block;
    }
}

/*商品*/
#choice {
    margin: 0 76px;
    background-color: #F6F6F6;

    .commodity {
        overflow: hidden;
        min-height: 480px;

        .commodity-item {
            width: 276px;
            height: 389px;
            margin-bottom: 22px;
            margin-right: 21px;
            float: left;
            display: block;
            cursor: pointer;
            box-sizing: border-box;
            position: relative;
            overflow: hidden;
            transition: all .3s;

            .commodity-card {
                width: 100%;
                height: 100%;
                position: relative;
                border: none;
                box-shadow: 0 1px 1px -1px rgb(0 0 0 / 50%);
                background-color: #fff;
                display: inline-block;

                .commodity-container {
                    width: 100%;
                    padding-top: 100%;
                    position: relative;
                    display: block;
                    overflow: hidden;

                    img {
                        height: 100%;
                        top: 50%;
                        left: 50%;
                        display: block;
                        position: absolute;
                        transform: translate(-50%,-50%);
                    }
                }

                .commodity-msg {
                    box-sizing: border-box;
                    padding: 10px 17px 17px;

                    .commodity-title {
                        font-size: 14px;
                        line-height: 18px;
                        color: #877a73;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }

                    .commodity-keyword {
                        margin: 16px auto 0;
                        position: relative;
                        overflow: hidden;

                        .taobao {
                            color: #fff;
                            border-radius: 2px;
                            box-shadow: none;
                            background-color: #f40;
                            min-width: 40px;
                            font-size: 14px;
                            line-height: 20px;
                            vertical-align: middle;
                            text-align: center;
                            padding: 0 6px;
                            margin: 0 6px 0 0;
                            box-sizing: border-box;
                            float: left;
                        }

                        .postage {
                            width: 50px;
                            color: #877a73;
                            box-shadow: none;
                            position: absolute;
                            top: 0;
                            right: 0;
                            margin: 0;
                            padding: 0;
                            float: left;
                            box-sizing: border-box;
                            min-width: 40px;
                            font-size: 14px;
                            line-height: 20px;
                            vertical-align: middle;
                            text-align: center;
                            border-radius: 2px;
                        }
                    }
                    .commodity-foot {
                        height: 28px;
                        text-align: center;
                        vertical-align: bottom;
                        margin-top: 14px;
                        position: relative;
                        overflow: hidden;

                        .left {
                            vertical-align: bottom;
                            position: absolute;
                            bottom: 0;
                            left: 0;

                            .price {
                                vertical-align: bottom;
                                margin-right: 6px;
                                color: #fa585a;

                                .price-tag {
                                    font-size: 12px;
                                    font-style: normal;
                                    line-height: 12px;
                                    display: inline-block;
                                }

                                // .price-strong {
                                //     display: inline-block;
                                //     font-size: 28px;
                                //     line-height: 28px;
                                // }

                                .price-digit {
                                    display: inline-block;
                                    font-size: 18px;
                                    line-height: 22px;
                                }
                            }

                            .sale-num {
                                display: inline-block;
                                font-size: 14px;
                                color: #877a73;
                                letter-spacing: 0;
                            }
                        }

                        .coupon-value {
                            width: 50px;
                            height: 20px;
                            line-height: 20px;
                            font-size: 12px;
                            color: #fa585a;
                            text-align: center;
                            border-radius: 2px;
                            box-shadow: inset 0 0 0 1px #fa585a;
                            bottom: 1px;
                            right: 0;
                            padding: 0;
                            position: absolute;
                            vertical-align: bottom;
                        }
                    }
                }
            }
        }
    }
}

/*加载更多商品*/
#choice-more {
    margin: 126px auto 0;

    .choice-more-btn {
        width: 250px;
        height: 70px;
        line-height: 70px;
        font-size: 24px;
        font-weight: 500;
        color: #43240c;
        text-align: center;
        margin: 0 auto;
        cursor: pointer;
        border-radius: 35px;
        background-color: #fee44e;
    }
}

/*回到顶部*/
#back-top {
    cursor: pointer;
    position: fixed;
    right: 50px;
    bottom: 314px;

    img {
        width: 60px;
        height: 60px;
    }
}

/*页脚*/
#footer {
    margin: 81px auto 0;

    .base-footer {
        width: 100%;
        height: 240px;
        background-color: #000;
        opacity: 0.7;
        color: #fff;
        position: relative;
        bottom: 0;
        font-family: PingFang-SC-Medium;
        margin-top: 81px;

        .footer-container {
            width: 1200px;
            height: 112px;
            margin: 0 auto;

            img {
                width: 112px;
                height: 112px;
                margin: 37px 19px 0 40px;
                float: left;
                border-radius: 20px;
            }

            .footer-content {
                display: inline-block;
                text-align: center;
                margin-top: 45px;
                margin-right: 444px;

                h1 {
                    font-size: 36px;
                    font-family: PingFangSC-Semibold;
                    font-weight: 600
                }

                p {
                    font-size: 18px;
                    font-weight: 500;
                    line-height: 25px;
                }
            }

            .about-us {
                margin-top: -56px;

                p {
                    font-size: 20px;
                    margin-left: 502px;

                    span {
                        margin: 0 8px;
                    }

                    a {
                        color: #fff;
                        text-decoration: none;
                    }
                }
            }

            .footer-buttom {
                text-align: center;
                margin-top: 88px;
                position: relative;

                .police-icon {
                    width: 22px;
                    height: 22px;
                    margin-top: 2px;
                    vertical-align: -5px;
                    position: absolute;
                    margin-left: -28px;
                }

                p {
                    font-size: 18px;
                    line-height: 25px;
                    display: inline-block;

                    a {
                        color: rgb(255, 255, 255)
                    }
                }
            }
        }
    }
}

/*安全认证lofo*/
#security {
    padding-bottom: 50px;
    display: block;
    text-align: center;
}